package com.totoro.mybatis.sharding.plugin.strategy;

import com.google.code.shardbatis.strategy.ShardStrategy;

/**
 * 用户表分表策略，根据用户id进行分表
 * Created by Niki on 2018/8/22 19:37
 */
public class UserShardStrategy implements ShardStrategy {
    @Override
    public String getTargetTableName(String baseTableName, Object params, String mapperId) {
        System.out.println(baseTableName);
        System.out.println(params);
        System.out.println(mapperId);
        return baseTableName;
    }
}
